Platform Explorer / Nuxeo Platform 6.0

Operation TemplateProcessor.Render (Render with template)

Description

Render the target document with the associated template if any. Returns the rendered Blob or the main Blob if no template is associated to the document.
Operation id TemplateProcessor.Render
Category Conversion
Label Render with template
Requires
Since

Parameters

Name Description Type Required Default value
save boolean no true 
store boolean no false 
templateName string no  

Signature

Inputs document
Outputs blob

Implementation Information

Implementation Class Class: org.nuxeo.template.automation.RenderWithTemplateOperation
Contributing Component org.nuxeo.platform.TemplateSources.operations

JSON Definition

{
  "id" : "TemplateProcessor.Render",
  "label" : "Render with template",
  "category" : "Conversion",
  "requires" : null,
  "description" : "Render the target document with the associated template if any. Returns the rendered Blob or the main Blob if no template is associated to the document.",
  "url" : "TemplateProcessor.Render",
  "signature" : [ "document", "blob" ],
  "params" : [ {
    "name" : "save",
    "description" : null,
    "type" : "boolean",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ "true" ]
  }, {
    "name" : "store",
    "description" : null,
    "type" : "boolean",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ "false" ]
  }, {
    "name" : "templateName",
    "description" : null,
    "type" : "string",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  } ]
}